const { resolve } = require('path')
module.exports = {
  'db': 'mongodb://localhost/zuanliu',
  'server': {
    HOST: 'localhost',
    PORT: 3008,
    apiPreFix: '/fenliu/api/v0',
    fileSavePath: resolve(__dirname, '../', 'resources/upload'),
    SIGN_KEY: 'polyflow'
  },
  'wx': {
    appid: 'wxb49f0a0ee3b7b621',
    secret: 'ca428861e5387c7c31e1ecfe43219d10',
    host: 'https://api.weixin.qq.com',
    tokenPath: resolve(__dirname, '../', 'token.txt'),
    ticketPath: resolve(__dirname, '../', 'ticket.txt')
  },
  'userAdminDefault': {
    userName: 'admin',
    password: '888888'
  },
  // 七牛配置
  'qiniu': {
    'bucket': 'meishuchun',
    'baseUrl': 'http://p5icauknh.bkt.clouddn.com/',
    'AK': 't7_qHQ0hDd4XYLISmC5lyf0xyhQqylmipAFB3Qxm',
    'SK': '2tfy3CZKct0EEdZr-i9peg4WlIGtSj8b3Goip-48'
  },
  // 邮件设置
  'mailer': {
    user: 'polyflow@163.com',
    pass: 'polyflow0043934',
    from: '"polyflow"<polyflow@163.com>' // 发送者
    // user: '785860655',
    // from: '"polyflow"<785860655@qq.com>',
    // pass: 'xbfshsuponpebcbj'
  }
}